//
//  YSGPersonInfoViewModel.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/11/18.
//  Copyright © 2020 QDSG. All rights reserved.
//

import Foundation

enum YSGPersonInfoCellType {
    case avatar
    case name
    case password
    case address
    case cancellation
    case logout
    
    var title: String {
        switch self {
        case .avatar: return "头像"
        case .name: return "姓名"
        case .password: return "修改密码"
        case .address: return "收货地址"
        case  .cancellation: return "注销账号"
        case .logout: return ""
        }
    }
}

struct YSGPersonInfoCellViewModel {
    var name: String
    var avatar: String
    let cellType: YSGPersonInfoCellType
    
    var cellHeight: CGFloat {
        switch cellType {
        case .avatar: return 60
        case .logout: return 150
        default: return 44
        }
    }
}
